package com.shure.surdes.modules.survey.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shure.surdes.common.base.BaseEntity;
import lombok.Data;

/**
 * 问卷答案结果对象 tb_answer
 *
 * @author Shure
 * @date 2021-10-18
 */

@Data
@TableName("tb_answer")
public class Answer extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 答案主键
     */
    @TableId(type = IdType.AUTO)
    private Long answerId;

    /**
     * 问卷主键
     */
    private Long surveyId;

    /**
     * 问题主键
     */
    private Long questionId;

    /**
     * 选项编码
     */
    private String optionCode;

    /**
     * 答案结果
     */
    private String answerValue;

    /**
     * 扩展填空值
     */
    private String extendValue;

    /**
     * 答题人唯一标识
     */
    private String userId;

    /**
     * 答题人姓名
     */
    private String userName;

}
